import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import store from './stores'

// import './assets/main.css'
import './assets/base.css'
// 重置样式
// import 'normalize.css'

import 'element-plus/dist/index.css'
import './permession.js'

import {color,permission} from './directives'

const app = createApp(App)

app.directive('color',color)

// 按钮权限指令 v-permission
app.directive('permission',permission)

app.use(createPinia())
app.use(router)
app.use(store)

app.mount('#app')
